<?php
class ORMpz_ecom_product_option {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->attribute_id)) {
      $obj->attribute_id =  $args->attribute_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->tag)) {
      $obj->tag =  $args->tag;
    }
    if (isset($args->price)) {
      $obj->price =  $args->price;
    }
    if (isset($args->intro_brief)) {
      $obj->intro_brief =  $args->intro_brief;
    }
    if (isset($args->is_default)) {
      $obj->is_default =  $args->is_default;
    }
    if (isset($args->image_path)) {
      $obj->image_path =  $args->image_path;
    }
    if (isset($args->image_path_small)) {
      $obj->image_path_small =  $args->image_path_small;
    }
    if (isset($args->image_path_tn)) {
      $obj->image_path_tn =  $args->image_path_tn;
    }
    if (isset($args->order)) {
      $obj->order =  $args->order;
    }
    return $obj;
  }
}
?>
